package designPatterns.P11_代理模式_Proxy.动态代理;

import designPatterns.P11_代理模式_Proxy.静态代理.Host;
import designPatterns.P11_代理模式_Proxy.静态代理.Rent;

public class P01 {
    public static void main(String[] args) {
        Host host = new Host();
        ProxyInvocationHandler handler = new ProxyInvocationHandler(host);
        Rent proxy = (Rent) handler.getProxy();
        proxy.rent();
    }
}
